package com.lboyang.service.impl;

import com.lboyang.entity.Payment;
import com.lboyang.mapper.PaymentMapper;
import com.lboyang.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @Author: Aiguodala
 * @CreateDate: 2021/4/24 17:01
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentMapper paymentMapper;

    @Override
    public int save(Payment payment) {
        return paymentMapper.save(payment);
    }

    @Override
    public Payment getById(Long id) {
        return paymentMapper.getById(id);
    }
}
